import { createApp } from 'vue'
import { registerApp } from './global'
import 'normalize.css'
import './assets/css/index.less'
import App from './App.vue'
import { setupStore } from './store/index'
// 1. 全局引入element-plus
// import ElementPlus from 'element-plus'
// import 'element-plus/lib/theme-chalk/index.css'

import router from './router'
import store from './store'

const app = createApp(App)

app.use(registerApp) // 按需引入element组件/注入全局函数
setupStore() // 动态路由注册必须在user(router)之前
app.use(router)
app.use(store)
// app.use(ElementPlus)
app.mount('#app')
